package com.aaa.train;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author ：Mr.王
 * @date ：Created in 2020/7/30 14:54
 * @description：
 * @modified By：
 * @version:
 */
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//该注解的作用是，排除自动注入数据源的配置（取消数据库配置），一般使用在客户端（消费者）服务中
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@EnableFeignClients //开启feign
public class TrainConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(TrainConsumerApp.class,args);
    }

}
